﻿<%@ Page Title="" Language="C#" MasterPageFile="~/IndexMaster.Master" AutoEventWireup="true" CodeBehind="IndexCustomerOrderFinish.aspx.cs" Inherits="EHTSaleManager.IndexCustomerOrderFinish" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Contentmain" runat="server">
    <div style="padding-left:0px; padding-right:5px">
        <div style="background-color:#ff6600; height:20px; padding-top:10px">
        <h2 style="color:White">
        Infomation for shipping address
    </h2>
    </div>
    <div class="accountInfo">
        <table cellspacing="0" cellpadding="0" class="data-table">
            <tbody>
                
                <tr>
                    <td colspan="2">
                        <span class="failureNotification">
                            <asp:Literal ID="ltrMessage" runat="server"></asp:Literal>
                        </span>
                        <asp:ValidationSummary ID="LoginUserValidationSummary" runat="server" CssClass="failureNotification"
                            ValidationGroup="LoginUserValidationGroup" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lbReceivedName" runat="server">Full Name:</asp:Label>
                    </td>
                    <th>
                        <asp:TextBox ID="txtReceivedName" runat="server" CssClass="textEntry"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rRegion" runat="server" ControlToValidate="txtReceivedName"
                            ValidationGroup="LoginUserValidationGroup" CssClass="failureNotification" ErrorMessage="Name is required."
                            ToolTip="Name is required." Text="*" />
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lbReceivedAddress" runat="server">Address:</asp:Label>
                    </td>
                    <th>
                        <asp:TextBox ID="txtReceivedAddress" runat="server" CssClass="textEntry"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rReceivedAddress" runat="server" ControlToValidate="txtReceivedAddress"
                            ValidationGroup="LoginUserValidationGroup" CssClass="failureNotification" ErrorMessage="Address is required."
                            ToolTip="Address is required." Text="*" />
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lbReceivedCity" runat="server">City:</asp:Label>
                    </td>
                    <th>
                        <asp:TextBox ID="txtReceivedCity" runat="server" CssClass="textEntry"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rReceivedCity" runat="server" ControlToValidate="txtReceivedCity"
                            ValidationGroup="LoginUserValidationGroup" CssClass="failureNotification" ErrorMessage="City is required."
                            ToolTip="City is required." Text="*" />
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lbReceivedRegion" runat="server" Text="Region:"></asp:Label>
                    </td>
                    <th>
                        <asp:DropDownList ID="ddlReceivedRegion" runat="server" CssClass="textEntry" 
                            ondatabound="ddlReceivedRegion_DataBound" >
                        </asp:DropDownList>
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lbPostCode" runat="server">Post code:</asp:Label>
                    </td>
                    <th>
                        <asp:TextBox ID="txtPostCode" runat="server" CssClass="textEntry" Text=""></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rPostCode" runat="server" ControlToValidate="txtPostCode"
                            ValidationGroup="LoginUserValidationGroup" CssClass="failureNotification" ErrorMessage="Post code is required."
                            ToolTip="Post code is required." Text="*" />
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lbReceicedPhone" runat="server">Phone:</asp:Label>
                    </td>
                    <th>
                        <asp:TextBox ID="txtReceicedPhone" runat="server" CssClass="textEntry" Text=""></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rReceicedPhone" runat="server" ControlToValidate="txtReceicedPhone"
                            ValidationGroup="LoginUserValidationGroup" CssClass="failureNotification" ErrorMessage="Phone is required."
                            ToolTip="Phone is required." Text="*" />
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lbRequredDate" runat="server">Requred Date:</asp:Label>
                    </td>
                    <th>
                        <asp:Calendar ID="cdRequredDate" runat="server"></asp:Calendar>
                        <asp:CustomValidator ID="rDate" runat="server" ErrorMessage="A date is required"
                            Text="*" ValidationGroup="LoginUserValidationGroup" ForeColor="Red" Style="font-size: 1em;
                            font-weight: 700"></asp:CustomValidator>
                    </th>
                </tr>
                <tr>
                    <td>
                    </td>
                    <th>
                        <asp:Button ID="btnSave" runat="server" Text="Save" ValidationGroup="LoginUserValidationGroup"
                            OnClick="btnSave_Click" />
                        <asp:Button ID="btnBack" runat="server" Text="Back" OnClick="btnBack_Click" />
                    </th>
                </tr>
            </tbody>
        </table>
    </div>
    </div>
</asp:Content>
